function Appgo(){
	
	if($("#money").val()== 0){
		alert("시급을 선택해주세요!");
		$("#money").focus();
		return;
	}
	
	if($("#photo").val()==""){
		alert("사진을 등록해주세요!");
		$("#photo").focus();
		return;
	}
	
	if($("#checkV").checked == false){
		alert("자격증을 선택해주세요.<br/>" +
				"자격증이 없으시면 없다고 적어주세요!");
		return;
	}
	$("#Appsubmit").submit();

}

function val_check(box){
	
	if(box.checked == true){
		$(".ui-value").each(function(){
		$(".textbox").show("fast");
	});
	
	}else{
		$(".ui-value").each(function(){
			$(".textbox").hide();
		});
	}

}
function day_check(box){
	
	if(box.checked == true){
		$(".ui-check").each(function(){
		$(this).attr("checked","");	
		$(this).attr("disabled","disabled");
		});
	
	}else{
		
		$(".ui-check").each(function(){
			$(this).removeAttr("disabled");
		});
	
	}
}
function request(){
	

	var id = $("#idvalue").val();
	location.href="/KOMORIUTA/ApplicationsOld.do?action_code=Appli&num=1&id=" + id;
}

function fail(){
	
	var id = $("#idvalue").val();
	location.href="/KOMORIUTA/ApplicationsOld.do?action_code=delet&id=" + id;
}

function success(){
	
	var id = $("#idvalue").val();
	var check = "&check=1";
	location.href="/KOMORIUTA/ApplicationsOld.do?action_code=success"+check+"&id="+id;
}

function disable(){
	
	var id = $("#idvalue").val();
	var check = "&check=1";
	location.href="/KOMORIUTA/ApplicationsOld.do?action_code=disable"+check+"&id="+id;
}

$(document).ready(function(){
	
	$("#thumnail a").click(function(e) {
		e.preventDefault();	
		var largeImgPath = $(this).attr("href");
		//var largeImgAlt = $(this).find("img").attr("alt").substr(0,4);
		$("#largeimg img").attr({src:largeImgPath});

	});
});

